public class Main {
    public static void main(String[] args) {
        // 创建不同的用户
        User goldUser = new User(new GoldMembership());
        User silverUser = new User(new SilverMembership());
        User platinumUser = new User(new PlatinumMembership());
        User regularUser = new User(new RegularMembership());

        // 创建一个房间
        Room room = new Room(100.0); // 假设房价为100

        // 创建酒店服务
        HotelService hotelService = new HotelService();

        // 测试不同用户的房价
        System.out.println("Gold User Price: " + hotelService.getRoomPrice(goldUser, room));
        System.out.println("Silver User Price: " + hotelService.getRoomPrice(silverUser, room));
        System.out.println("Platinum User Price: " + hotelService.getRoomPrice(platinumUser, room));
        System.out.println("Regular User Price: " + hotelService.getRoomPrice(regularUser, room));
    }
}
